package searcher;

/**
 * FileMatch is a data object describing the event of a match between a file and
 * a SearchCriteria
 * 
 * @version $Id: FileMatch.java,v 1.1 2006/02/22 15:00:06 abutler Exp $
 */
public class FileMatch
{
	private String theFile;

	private TextMatch [] theMatches;

	/**
	 * Creates a FileMatch
	 * 
	 * @param aFile The path of the file that was matched
	 * @param matches The TextMatches, if any, that were involved in matching
	 *        this file
	 */
	public FileMatch(String aFile, TextMatch [] matches)
	{
		theFile = aFile;
		theMatches = matches;
	}

	/**
	 * @return The path of the file that was matched
	 */
	public String getFile()
	{
		return theFile;
	}

	/**
	 * @return The TextMatches, if any, that were involved in matching this file
	 */
	public TextMatch [] getTextMatches()
	{
		return theMatches;
	}
}
